Page({
  data:{
    list:[
      {
        "text":"订单查询",
        "iconPath":"/images/order.png",
        "selectedIconPath":"/images/order-selected.png",
        "badge":""
      },
      {
        "text":"收货地址",
        "iconPath":"/images/address.png",
        "selectedIconPath":"/images/address-selected.png",
        "badge":""
      },
      {
        "text":"会员等级",
        "iconPath":"/images/member.png",
        "selectedIconPath":"/images/member-selected.png",
        "badge":""
      },
      {
        "text":"客服帮助",
        "iconPath":"/images/service.png",
        "selectedIconPath":"/images/service-selected.png",
        "badge":"3"
      },
      
    ],
    files:[
      // {url:"dsfdsffds"},
      // {url:"dsfdsfdsfds"}
    ]
  },
  //选择本地图片
  mySelect(e){
    // 获取图片的临时地址
    var tempFilePaths=e.detail.tempFilePaths;
    //修改数据格式，返回对象数据
    var files=tempFilePaths.map(item=>{
      return {url:item}
    })
    //把图片路径渲染到页面
    this.setData({
      files
    })

  }
})